import { defineStore } from "pinia";
import { ref } from "vue";
import { getCateGory } from "@/api/home";
export const useCateGoryStore = defineStore("category", () => {
  const cateGoryList = ref([]);
  const getCateGoryList = async () => {
    const res = await getCateGory();
    cateGoryList.value = res.result;
  };

  return {
    cateGoryList,
    getCateGoryList,
  };
});
